using System;
namespace Net35.Xrm.Sdk.Client
{
	public interface IEndpointSwitch
	{
		event EventHandler<EndpointSwitchEventArgs> EndpointSwitched;
		event EventHandler<EndpointSwitchEventArgs> EndpointSwitchRequired;
		bool EndpointAutoSwitchEnabled
		{
			get;
			set;
		}
		System.Uri AlternateEndpoint
		{
			get;
		}
		System.Uri PrimaryEndpoint
		{
			get;
		}
		bool IsPrimaryEndpoint
		{
			get;
		}
		bool CanSwitch(System.Uri currentUri);
		void SwitchEndpoint();
		bool HandleEndpointSwitch();
	}
}
